import request from '../utils/request'
import { HttpMethod } from '../utils/http'


export default {
  /**
   * 订单统计
   * 根据客户id查询出当前每个订单状态下面的数量
   * 订单状态(0:待付款 1:待确认 2:待评价 3:已完成 4:无效订单 5已关闭
   */
  statisticMemberOrder (memberId) {
    return request({
      url: `/beauty/statistical/statisticMemberOrder/${memberId}`,
      method: HttpMethod.GET
    })
  },
  // 根据客户id查询出当前客户的最近6月份的充值情况
  statisticMemberTopUp (memberId) {
    return request({
      url: `/beauty/statistical/statisticMemberTopUp/${memberId}`,
      method: HttpMethod.GET
    })
  },
  // 客户月统计订单
  statisticMemberMonthOrder (memberId) {
    return request({
      url: `/beauty/statistical/statisticMemberMonthOrder/${memberId}`,
      method: HttpMethod.GET
    })
  },
}

